//
//  MyIncomeHeaderView.m
//  Doctors
//
//  Created by 王森 on 16/4/14.
//  Copyright © 2016年 王森. All rights reserved.
//

#import "MyIncomeHeaderView.h"

@implementation MyIncomeHeaderView

- (instancetype)initWithFrame:(CGRect)frame{
    {
        self=[super initWithFrame:frame];
        
        if (self) {
            
            [[NSBundle mainBundle]loadNibNamed:@"MyIncomeHeaderView" owner:self options:nil];
            
            self.contentView.frame=CGRectMake(0, 0, SCREEN_WIDTH, 200);
            UIImage *image = IMAGE(@"bg_myshouru");
            self.contentView.layer.contents = (id) image.CGImage;
            

            [self addSubview:self.contentView];
            
            
        }
        return self;
        
    }
    
}
-(void)fuZhi:(NSDictionary *)dic{
    self.todayShouRu.text=dic[@"dayAmt"];
    self.todayPaiMing.text=StringWithFormat(dic[@"dayRanking"]);
    self.lastDayShouRU.text=dic[@"beforeAmt"];
    
    
}

@end
